package com.mti.app.controller
{
	import com.mti.app.model.EvenementProxy;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class LoadEvenementCommand extends SimpleCommand implements ICommand
	{
		private var evenementProxy:EvenementProxy;
		
		override public function execute(notification:INotification):void
		{
			evenementProxy = facade.retrieveProxy(EvenementProxy.NAME) as EvenementProxy;
			
			evenementProxy.load(String (notification.getBody()));
		}
		
	}
}